<?php $this->registerResourcePackage('iCheck'); ?>

<div class="form-group horizontal-checkbox">
	<div class="col-xs-10">
		<input
			id="cb-element-<?php echo $params['name'] ?>"
			name="<?php echo $params['name'] ?>"
			<?php echo $value?"checked":"" ?>
			type="checkbox" <?php echo $htmlOptions ?>
			class="fc-checkbox <?= $elementClass ?>"
			<?php if (!empty($params['errors'])) { echo 'data-has-error="1"'; } ?>
			data-trigger="manual" data-toggle="popover" data-placement="auto left"
		<?php if (!empty($params['errors'])) { ?>
			data-content="<?= implode(', ', $params['errors']) ?>"
		<?php } ?>
			>
		<label for="cb-element-<?php echo $params['name'] ?>">
			<?php echo $params['label']; ?>
		</label>
	</div>
</div>